package com.kitty.listener.event;

import com.kitty.game.role.model.Role;
import com.kitty.listener.BasePlayerEvent;
import com.kitty.listener.EventType;
import lombok.Getter;
import org.apache.mina.core.session.IoSession;

/**Session断开事件*/
@Getter
public class SessionCloseEvent extends BasePlayerEvent {
    private Role role;
    private IoSession session;

    public SessionCloseEvent(EventType evtType, Role role, IoSession session) {
        super(evtType, role);
        this.role = role;
        this.session =session;
    }

    public Role getRole() {
        return role;
    }

    public IoSession getSession() {
        return session;
    }
}
